home *** CD-ROM | disk | FTP | other *** search
- Path: airdmhor.gen.nz!not-for-mail
- From: gumboot@airdmhor.gen.nz (Simon Hosie)
- Newsgroups: comp.lang.c
- Subject: Re: How to get a random string each time??
- Date: 26 Feb 1996 09:55:26 +1300
- Organization: Airdmhor : a couple of BBS's, a bunch of people, and a cat.
- Message-ID: <4gqibu$ckd@airdmhor.gen.nz>
- References: <4fh5od$qq0@news.nevada.edu> <4g4c5m$tlb@news.nevada.edu> <4gg4tj$s18@bcarh8ab.bnr.ca>
- NNTP-Posting-Host: airdmhor.gen.nz
- X-Newsreader: TIN [version 1.2 PL2]
-
- In article <4g4c5m$tlb@news.nevada.edu>,
- Clapton Chan <chancl@nevada.edu> wrote:
- > ...
- > for(i=0; i<10; i++) {
- > ...
- > if...
- > break;
- > }
- >
- > ...
- > j = j%i; /* this handles early program exit */
-
- Henry Troup:
- > I know a couple of people who would jump up and down and yell about
- > access to a loop index variable outside of the loop. And I know a
- > language that made it impossible.
-
- How would you (or they, the jumpers) suggest the programmer find out what
- the loop was up to when it terminated?
-